From: | Steffen |
Date: | 03 Aug 99 at 11:28:47 |
Subject: | Re: Drawing images on Intution |
From: Steffen <steffen.mars@stenloese.mail.telia.com>
Hello Allan
On 03-Aug-99, Allan Odgaard claimed:
> On 01-Aug-99, Darryl Hartwig wrote:
>
>>> How is your background generated?
>> The background is simply a green colour, then a whole bunch
>> of cards are splashed over it. I'm basically moving a card
>> from one column to another.
>
> Then you can probably redraw a small portion of the background fast, and so I'd
> not make a copy, but simply ask your code to redraw the damaged areas which
> arise while dragging a card.
You could allso keep a copy of the entire display. That way, you blit ones instead of twice, but it requires chipmem. If you want the speed, i think this is fastest.
>> But how is the copy to be achieved? ClipBlit() only works
>> from one rastpart to another.
>
> You'd allocate a bitmap (friend of your window bitmap) and encapsulate it in a
> rastport you setup yourself (InitRastPort()). Then you can move back and forth
> from the on and off screen bitmaps.
If you keep a copy of the window in a bitmap, you can use BltBitMapRastPort(). You can allso use BltBitMap() and use RPort->BitMap, provided your graphics don't exceed the bitmap boundaries.
>
>> I've tried using ObtainPen() and setting up the actual
>> colours... this worked, at least for a while (that is, got
>> the whole 8 colours I wanted initially, then dropped all
>> the way to 1).
>
> Dropped to 1? What does that mean?
One might wonder ???
>....
Steffen